﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<meta charset="utf-8"/>
<section id="player">
    <video id="media" width="100%" height="100%" controls>
        <source id="v1" src="http://media.w3.org/2010/05/sintel/trailer.mp4">
    </video>
</section>
<script>

function id() {  
var a=location.search; 
var s=a.indexOf("?"); 

if (s==-1){
return null;
}

var t=a.substring(s+2)
return t;  
}  

if (id()!= null)
  {
   document.getElementById("v1").src=id();
        document.getElementById("media").load();
  }
  
document.getElementById("media").play();
</script> 
</body>
</html>